package com.xinqi.modules.prepare.paper.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.prepare.paper.domain.PrepareExamPaperEntity;
import com.xinqi.modules.prepare.paper.dto.req.PrepareExamPaperQueryDTO;
import com.xinqi.modules.prepare.paper.dto.rsp.PrepareExamPaperResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 备课区测评卷数据层
 *
 * @author: system
 * @date: 2023/03/19
 */
@Mapper
public interface PrepareExamPaperMapper extends SuperMapper<PrepareExamPaperEntity> {
    Page<PrepareExamPaperResultDTO> findPage(Page<Object> page, @Param("dto") PrepareExamPaperQueryDTO query);

    List<PrepareExamPaperResultDTO> findList(@Param("dto") PrepareExamPaperQueryDTO query);

    int restoreById(@Param("id") Long id);
}
